<!doctype html>
<html lang="en">

<head>
	<title>@yield('title') - 嘉时乐享</title>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<meta name="csrf-token" content="{{ csrf_token() }}">
	<!-- VENDOR CSS -->
	<link rel="stylesheet" href="{{config('app.inlet_src')}}assets/vendor/bootstrap/css/bootstrap.min.css">
	<!-- <link rel="stylesheet" href="{{config('app.inlet_src')}}assets/vendor/font-awesome/css/font-awesome.min.css"> -->
	<link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
	<link rel="stylesheet" href="{{config('app.inlet_src')}}assets/vendor/linearicons/style.css">
	<link rel="stylesheet" href="{{config('app.inlet_src')}}assets/vendor/chartist/css/chartist-custom.css">
	<link rel="stylesheet" href="{{config('app.inlet_src')}}assets/vendor/toastr/toastr.min.css">
	<link rel="stylesheet" href="{{config('app.inlet_src')}}assets/css/sweetalert2.min.css">
	<link rel="stylesheet" href="{{config('app.inlet_src')}}assets/css/bootstrap-switch.min.css">
	<!-- MAIN CSS -->
	<link rel="stylesheet" href="{{config('app.inlet_src')}}assets/css/main.css">
	<!-- FOR DEMO PURPOSES ONLY. You should remove this in your project -->
	<link rel="stylesheet" href="{{config('app.inlet_src')}}assets/css/demo.css">
	<!-- GOOGLE FONTS -->
	<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700" rel="stylesheet">
	@yield('css-import')
	@yield('css-write')
	<!-- ICONS -->
	<link rel="apple-touch-icon" sizes="76x76" href="{{config('app.inlet_src')}}/assets/img/apple-icon.png">
	<link rel="icon" type="image/png" sizes="96x96" href="{{config('app.inlet_src')}}/assets/img/favicon.png">
	<style type="text/css">
		
		.search-jslx:hover .app-search-text{
		  height:300px;
		}
	</style>
</head>

<body>
	<!-- WRAPPER -->
	<div id="wrapper">
		<!-- NAVBAR -->
		<nav class="navbar navbar-default navbar-fixed-top">
			<!-- <div class="brand"> -->
			<div class="brand" style="padding: 16px 39px;background-color: #fff;font-size: 31px;font-family:'SimHei'">
				<!-- <img src="{ {config('app.inlet_src')} }/assets/img/logo-dark.png" alt="Klorofil Logo" class="img-responsive logo"> -->
				@if(session('region') == 3)
				<span style="color:rgb(0,170,255);">嘉时乐享 - {{session('admin_name')}}</span>
				@else
				<a href="/" style="color:rgb(0,170,255);">嘉时乐享</a>
				@endif
			</div>
			<div class="container-fluid">
				<div class="navbar-btn">
					<button type="button" class="btn-toggle-fullwidth" title="收起"><i class="lnr lnr-arrow-left-circle"></i></button>
				</div>
				<form class="navbar-form navbar-left" id="searchForm">
					<div class="input-group">
						<input type="text" value="" class="form-control app-search-text" name="s" AUTOCOMPLETE="off" placeholder="全局搜索...">
						<input type="hidden" value="tel" name="t">
						<span class="input-group-btn"><button type="submit" class="btn btn-primary search-jslx"><i class="fa fa-search"></i></button></span>
					</div>
				</form>
				<!-- <div class="navbar-btn navbar-btn-right">
					<a class="btn btn-success update-pro" href="" title="Upgrade to Pro" target="_blank"><i class="fa fa-rocket"></i> <span>UPGRADE TO PRO</span></a>
				</div> -->
				<div id="navbar-menu">
					<ul class="nav navbar-nav navbar-right">
						<li class="dropdown">
							<a href="#" class="dropdown-toggle icon-menu" data-toggle="dropdown">
								<i class="lnr lnr-alarm"></i>
								<!-- <span class="badge bg-danger">5</span> -->
							</a>
							<ul class="dropdown-menu notifications">
								<li><a href="#" class="notification-item"><span class="dot bg-success"></span>您有待处理的提现申请！</a></li>
								<li><a href="#" class="notification-item"><span class="dot bg-danger"></span>您有待处理的提现申请！</a></li>
								<li><a href="#" class="notification-item"><span class="dot bg-warning"></span>您有一条待查看的认证信息</a></li>
								<!-- <li><a href="#" class="notification-item"><span class="dot bg-success"></span>Your request has been approved</a></li> -->
								<!-- <li><a href="#" class="more">See all notifications</a></li> -->
							</ul>
						</li>
						<li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="lnr lnr-question-circle"></i> <span>帮助</span> <i class="icon-submenu lnr lnr-chevron-down"></i></a>
							<ul class="dropdown-menu">
								<li><a href="#">基本使用</a></li>
								<li><a href="#">数据用处</a></li>
								<li><a href="#">保证协议</a></li>
								<li><a href="#">意见反馈</a></li>
							</ul>
						</li>
						<li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown"><img src="{{config('app.inlet_src')}}/assets/img/pic.jpg" class="img-circle" alt="Avatar"> <span>{{ session('admin_name') }}</span> <i class="icon-submenu lnr lnr-chevron-down"></i></a>
							<ul class="dropdown-menu">
								<li><a href="#"><i class="lnr lnr-user"></i> <span>我的信息</span></a></li>
								<li><a href="#"><i class="lnr lnr-envelope"></i><span>消息</span></a></li>
								<li><a href="/loginOut"><i class="lnr lnr-exit"></i> <span>退出登录</span></a></li>
							</ul>
						</li>
					</ul>
				</div>
			</div>
		</nav>
		<!-- END NAVBAR -->
		<!-- LEFT SIDEBAR -->
		<div id="sidebar-nav" class="sidebar">
			<div class="sidebar-scroll">
				<nav>
					<ul class="nav meal-system">
						<li class="drop-down-home {{power_if(['/','/finance'])}}">
							<a href="#dataCount" data-toggle="collapse" class="collapsed dataCount"><i class="lnr lnr-chart-bars"></i> <span>统计</span> <i class="icon-submenu lnr lnr-chevron-right"></i></a>
							<div id="dataCount" class="collapse ">
								<ul class="nav">
									<li><a href="/" class="">数据概览</a></li>
									<li><a href="/finance" class="{{power_if('/finance')}}">财务收支</a></li>
								</ul>
							</div>
						</li>
						<li class="drop-down-home {{power_if(['/mealCardDesign','/manageCard','/cardSellorder'])}}">
							<a href="#mealCard" data-toggle="collapse" class="collapsed mealCard"><i class="lnr lnr-license"></i> <span>饭卡</span> <i class="icon-submenu lnr lnr-chevron-right"></i></a>
							<div id="mealCard" class="collapse ">
								<ul class="nav">
									<li><a href="/mealCardDesign" class="{{power_if('/mealCardDesign')}}">创建饭卡</a></li>
									<li><a href="/manageCard" class="{{power_if('/manageCard')}}">饭卡管理</a></li>
									<li><a href="/cardSellorder" class="{{power_if('/cardSellorder')}}">出售订单</a></li>
									<li><a href="/card/gift" class="{{power_if('*')}}">发放饭卡</a></li>
									<li><a href="/redpack/list" class="{{power_if('/redpack/list')}}">分享红包记录</a></li>
								</ul>
							</div>
						</li>
						<li class="drop-down-home {{power_if(['/coupon/extract/list','/coupon/release','/manageCoupon','/coupon/order/list','/coupon/shop/list'])}}">
							<a href="#cardCoupon" data-toggle="collapse" class="collapsed cardCoupon"><i class="lnr lnr-license"></i> <span>卡券</span> <i class="icon-submenu lnr lnr-chevron-right"></i></a>
							<div id="cardCoupon" class="collapse">
								<ul class="nav">
									<li><a href="/coupon/release" class="{{power_if('/coupon/release')}}">发布卡券</a></li>
									<li><a href="/manageCoupon" class="{{power_if('/manageCoupon')}}">卡券管理</a></li>
									<li><a href="/coupon/order/list" class="{{power_if('/coupon/order/list')}}">出售订单</a></li>
									<li><a href="/coupon/shop/list" class="{{power_if('/coupon/shop/list')}}">卡券商户</a></li>
									<li><a href="/coupon/shop/fabu/list" class="{{power_if('/coupon/shop/list')}}">发布卡券商户</a></li>
									<li><a href="/coupon/extract/list" class="{{power_if('/coupon/extract/list')}}">提现申请</a></li>
								</ul>
							</div>
						</li>
						<li class="drop-down-home {{power_if(['/shopList','/userIdentifiList','/extractList','/orderListAll','/createQrcode','/get/circle/list','/get/circle/view'])}}">
							<a href="#mealStore" data-toggle="collapse" class="collapsed mealStore"><i class="lnr lnr-store"></i> <span>商铺管理</span> <i class="icon-submenu lnr lnr-chevron-right"></i></a>
							<div id="mealStore" class="collapse">
								<ul class="nav">
									<li><a href="/shopList" class="{{power_if('/shopList')}}">所有商铺</a></li>
									<li><a href="/userIdentifiList" class="{{power_if('/userIdentifiList')}}">商户认证</a></li>
									<li><a href="/extractList" class="{{power_if('/extractList')}}">提现申请列表</a></li>
									<li><a href="/orderListAll" class="{{power_if('/orderListAll')}}">所有订单</a></li>
									<li><a href="/orders/today" class="{{power_if('/orderListAll')}}">今日订单</a></li>
									<li><a href="/createQrcode" class="{{power_if('/createQrcode')}}">预生成商家二维码</a></li>
									<li><a href="/get/circle/list" class="{{power_if('/get/circle/list')}}">商圈管理</a></li>
									<li><a href="/get/circle/view" class="{{power_if('/get/circle/view')}}">可视商圈</a></li>
									<li><a href="/company/take" class="{{power_if('/company/take')}}">添加提现申请</a></li>
								</ul>
							</div>
						</li>
						<li class="drop-down-home {{power_if(['/userAll','/userList','/userShopList','/feedback'])}}">
							<a href="#subPages" data-toggle="collapse" class="collapsed subPages"><i class="lnr lnr-users"></i> <span>用户管理</span> <i class="icon-submenu lnr lnr-chevron-right"></i></a>
							<div id="subPages" class="collapse">
								<ul class="nav">
									<li><a href="/userAll" class="{{power_if('/userAll')}}">全部用户</a></li>
									<li><a href="/userList" class="{{power_if('/userList')}}">普通用户</a></li>
									<li><a href="/buycard/but/users" class="{{power_if('/userList')}}">回访用户</a></li>
									<li><a href="/userShopList" class="{{power_if('/userShopList')}}">餐饮商家用户</a></li>
									<li><a href="/feedback" class="{{power_if('/feedback')}}">用户反馈</a></li>
									<li><a href="/get/joins" class="{{power_if('/get/joins')}}">加盟申请</a></li>
									<li><a href="/delivery/order" class="{{power_if('/delivery/order')}}">配送订单</a></li>
								</ul>
							</div>
						</li>
						<li class="drop-down-home {{power_if('/homePageEdit')}}">
							<a href="#APPManage" data-toggle="collapse" class="collapsed APPManage"><i class="lnr lnr-pencil"></i> <span>APP内容编辑</span> <i class="icon-submenu lnr lnr-chevron-right"></i></a>
							<div id="APPManage" class="collapse ">
								<ul class="nav">
									<li><a href="/homePageEdit" class="{{power_if('/homePageEdit')}}">小程序内容</a></li>
									<li><a href="/edit/official" class="{{power_if('/edit/official')}}">官网内容</a></li>
								</ul>
							</div>
						</li>
						<li><a href="/" class="{{power_if('/###')}}"><i class="lnr lnr-rocket"></i> <span>APP版本发布</span></a></li>
						<li class="drop-down-home {{power_if(['/system/create','/system/list'])}}">
							<a href="#SystemManage" data-toggle="collapse" class="collapsed SystemManage"><i class="lnr lnr-cog"></i> <span>系统管理</span> <i class="icon-submenu lnr lnr-chevron-right"></i></a>
							<div id="SystemManage" class="collapse ">
								<ul class="nav">
									<li><a href="/system/create" class="">创建管理员</a></li>
									<li><a href="/system/list" class="">管理员列表</a></li>
									<li><a href="/system/set/huodong" class="">活动设置</a></li>
								</ul>
							</div>
						</li>
					</ul>
					<ul class="nav exchange-system" style="display: none;">
						<li class="drop-down-home">
							<a href="#dataCount" data-toggle="collapse" class="collapsed dataCount"><i class="lnr lnr-chart-bars"></i> <span>统计</span> <i class="icon-submenu lnr lnr-chevron-left"></i></a>
							<div id="dataCount" class="collapse ">
								<ul class="nav">
									<li><a href="/" class="">数据概览</a></li>
									<li><a href="/" class="">财务收支</a></li>
								</ul>
							</div>
						</li>
						<li class="drop-down-home">
							<a href="#mealCard" data-toggle="collapse" class="collapsed mealCard"><i class="lnr lnr-license"></i> <span>master</span> <i class="icon-submenu lnr lnr-chevron-left"></i></a>
							<div id="mealCard" class="collapse ">
								<ul class="nav">
									<li><a href="/mealCardDesign" class="">创建饭卡</a></li>
									<li><a href="/manageCard" class="">饭卡管理</a></li>
									<li><a href="/cardSellorder" class="">出售订单</a></li>
								</ul>
							</div>
						</li>
						<li class="drop-down-home">
							<a href="#mealStore" data-toggle="collapse" class="collapsed mealStore"><i class="lnr lnr-store"></i> <span>商铺管理</span> <i class="icon-submenu lnr lnr-chevron-left"></i></a>
							<div id="mealStore" class="collapse ">
								<ul class="nav">
									<li><a href="/shopList" class="">所有商铺</a></li>
									<li><a href="/userIdentifiList" class="">商户认证</a></li>
									<li><a href="/extractList" class="">商家提现申请</a></li>
									<li><a href="/orderListAll" class="">所有商家订单</a></li>
									<li><a href="/createQrcode" class="">预生成商家二维码</a></li>
								</ul>
							</div>
						</li>
						<li class="drop-down-home">
							<a href="#subPages" data-toggle="collapse" class="collapsed subPages"><i class="lnr lnr-users"></i> <span>用户管理</span> <i class="icon-submenu lnr lnr-chevron-left"></i></a>
							<div id="subPages" class="collapse">
								<ul class="nav">
									<li><a href="/userAll" class="">全部用户</a></li>
									<li><a href="/userList" class="">普通用户</a></li>
									<li><a href="/userShopList" class="">餐饮商家用户</a></li>
									<li><a href="/feedback" class="">用户反馈</a></li>
								</ul>
							</div>
						</li>
						<li class="drop-down-home">
							<a href="#APPManage" data-toggle="collapse" class="collapsed APPManage"><i class="lnr lnr-pencil"></i> <span>APP内容编辑</span> <i class="icon-submenu lnr lnr-chevron-left"></i></a>
							<div id="APPManage" class="collapse ">
								<ul class="nav">
									<li><a href="/homePageEdit" class="">首页内容</a></li>
								</ul>
							</div>
						</li>
						<li><a href="/" class=""><i class="lnr lnr-rocket"></i> <span>APP版本发布</span></a></li>
					</ul>
				</nav>
			</div>
		</div>
		<!-- END LEFT SIDEBAR -->
		<!-- MAIN -->
		<div class="main">
			<!-- MAIN CONTENT -->
			<div class="main-content">
				@section('main-content')
				<div class="container-fluid">
					@yield('content-fluid')
				</div>
				@show
			</div>
			<!-- END MAIN CONTENT -->
		</div>
		<!-- END MAIN -->
		<div class="clearfix"></div>
		<footer>
			<div class="container-fluid">
				<p class="copyright">Copyright &copy; {{date('Y')}}.Company jiashilexiang <a href="http://www.jiashilexiang.com/" target="_blank" title="嘉时乐享">嘉时乐享</a> - Collect from <a href="http://www.jiashilexiang.com/" title="嘉时乐享" target="_blank">嘉时乐享</a></p>
			</div>
		</footer>
	</div>
	<!-- END WRAPPER -->
	<!-- Javascript -->
	<script src="{{config('app.inlet_src')}}assets/vendor/jquery/jquery.min.js"></script>
	<script src="{{config('app.inlet_src')}}assets/vendor/bootstrap/js/bootstrap.min.js"></script>
	<script src="{{config('app.inlet_src')}}assets/scripts/bootstrap-switch.js"></script>
	<script src="{{config('app.inlet_src')}}assets/vendor/jquery-slimscroll/jquery.slimscroll.min.js"></script>
	<script src="{{config('app.inlet_src')}}assets/vendor/jquery.easy-pie-chart/jquery.easypiechart.min.js"></script>
	<script src="{{config('app.inlet_src')}}assets/vendor/chartist/js/chartist.min.js"></script>
	<script src="{{config('app.inlet_src')}}assets/scripts/Chart.bundle.min.js"></script>
	<script src="{{config('app.inlet_src')}}assets/vendor/toastr/toastr.min.js"></script>
	<script src="{{config('app.inlet_src')}}assets/scripts/klorofil-common.js"></script>
	<script src="{{config('app.inlet_src')}}assets/scripts/sweetalert2.all.min.js"></script>
	<script src="{{config('app.inlet_src')}}assets/vendor/jquery/jquery.form.min.js"></script>
	<script src="{{config('app.inlet_src')}}assets/scripts/functions.js"></script>
	@yield('js-import')
	<script type="text/javascript">
		$('.drop-down-home').each(function(){
			var idm = $(this).find('div').attr('id');
			var nameid = idm+'Click';
			if(sessionStorage[nameid]==1){
				replaceClass('.'+idm);
			}
			$('.'+idm).click(function(){
				var ac = $(this).hasClass('active');
				if(ac){
					sessionStorage[nameid] = false;
				}else{
					sessionStorage[nameid] = 1;
				}
			});
		});
		function replaceClass(c){
			$(c).removeClass('collapsed').addClass('active').attr('aria-expanded','true');
			$(c).next().addClass('in');
		}
		// $('#searchForm').hide();
		// var pathname = location.pathname.substr(-1,6);
		var urlpath = [
			'%cardSellorder',
			'%shopList',
			'%extractList',
			'%userAll'
		];
		location.pathname;
	</script>
	@section('js-write')
	@show
	@yield('js-write-add')
</body>

</html>
